package com.ferris.redbook.dto.response;

import lombok.Data;
import java.time.LocalDateTime;

@Data
public class NotificationResponse {
    private Long id;
    private String type; // comment, like, follow
    private String action; // reply, comment, like, follow
    private String content;
    private Boolean isRead;
    private LocalDateTime createTime;
    private UserResponse user; // 需要关联users表(from_user_id)
    private PostSimpleResponse post; // 需要关联posts表
}

@Data
class PostSimpleResponse {
    private Long id;
    private String title;
    private String coverImage;
}